package com.weipeep.sys.vo;

import com.weipeep.common.config.Constant;
import com.weipeep.sys.domain.UserFileDO;

public class UserFileVo extends UserFileDO {
    private String url;
    private String fileTypeName;
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileTypeName() {
        Integer fileType = super.getFileType();
        switch (fileType){
            case 1:
                fileTypeName="营业执照";
                break;
            case 2:
                fileTypeName="法人身份证正面";
                break;
            case 3:
                fileTypeName="法人身份证反面";
                break;
            case 4:
                fileTypeName="代理人身份证正面";
                break;
            case 5:
                fileTypeName="代理人身份证反面";
                break;
            case 6:
                fileTypeName="法人授权书";
                break;
            case 7:
                fileTypeName="协议书";
                break;
            default:
                fileTypeName="未知";
                break;
        }
        return fileTypeName;
    }

    public void setFileTypeName(String userFileName) {
        this.fileTypeName = userFileName;
    }
}
